analogue approach

模拟法求解